package com.kaifamiao.set;

import java.util.HashSet;
import java.util.Set;

public class HashSetTest {

	public static void main(String[] args) {
		
		Set<String> set = Set.of( "葫芦头" , "红烧肥肠" , "回锅肉" );
		
		HashSet<String> hs = new HashSet<>();
		
		hs.add( "红烧肉" );
		hs.add( "盐煎肉" );
		hs.addAll( set );
		
		System.out.println( hs );
		
		hs.remove( "红烧肥肠" );
		
		System.out.println( hs );

	}

}
